/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author luci
 */
public interface DataModel extends Serializable {
    public int insert();
    public DataModel selectById(long id);
    public int update();
    public int delete();
    public List<DataModel> selectByAttribute(String name, String value);
}


